{extend name="mainadmin@layouts/base" /}
{block name="main" }
<header>
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="fa fa-ellipsis-v"></i>
                <strong>{$row['id']>0?"编辑商品标签":"添加商品标签"}</strong>
            </li>
        </ul>

        <a class="pull-right pointer p-r" data-toggle="back" title="返回"><i class="fa fa-reply"></i></a>
    </div>
</header>
<form class="form-horizontal form-validate form_vbox" method="post" action="{:url('info')}">
    <section class="vbox">
        <section class="scrollable  wrapper w-f">
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">标签标题</label>
                        <div class="col-sm-3 must">
                            <input name="title" class="input-large" type="text" value="{$row.title}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">标签副标题</label>
                        <div class="col-sm-3 must">
                            <input name="subtitle" class="input-large" type="text" value="{$row.subtitle}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">是否启用</label>
                        <div class="col-sm-3 ">
                            <label class=" inline">
                                <input type="radio" name="status" value="1" {$row['status']|tplckval=1,'checked',true}/>
                                是
                            </label>
                            <label class=" inline">
                                <input type="radio" name="status" value="2" {$row['status']|tplckval=0,'checked'}/>
                                否
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序</label>
                        <div class="col-sm-3 must">
                            <input type="text" name="sort_order" id="sort_order" value="{$row.sort_order|intval}"
                                   data-rule-required="true" data-rule-maxlength="30" class="input-mini">
                            <span style="color:red;">（数字越大越靠前）</span>
                        </div>
                    </div>
                </div>
            </section>
        </section>
        <footer class="footer bg-white b-t p-t">
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-1">
                    <input name="id" type="hidden" value="{$row['id']}"/>
                    <button type="submit" class="btn btn-primary js_save_submit" data-loading-text="保存中...">保存</button>
                    <button type="button" class="btn btn-default" data-toggle="back">取消</button>
                </div>
            </div>
        </footer>
    </section>
</form>
{/block}
{block name="footer" }
<script type="text/javascript">
</script>
{/block}